package com.neuedu.ex;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/1814:31
 */
public class DealEx {


    public static void main(String[] args) {
        createExcetption();

        try {
            thowExcetion();
        } catch (BusinessException e) {
            throw new RuntimeException(e);
        }
    }

    public static void createExcetption(){


        try{
            throw  new BusinessException("自己产生的异常");
        }catch (Exception e){
            System.out.println("e = " + e);
        }

        System.out.println("后续的代码");
    }

    public static void thowExcetion() throws BusinessException  {

            throw  new BusinessException("自己产生的异常");

    }

}
